package com.attendance.www.hr.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.attendance.www.hr.service.IPrivilegeGroupService;
import com.zhangkongli.frame.core.ResultMap;

/**
 * 节假日查询
 * 
 * @version 2017/11/09
 * @author 张鑫
 */
@Controller
@RequestMapping("/privilegeGroup")
public class PrivilegeGroupController {
	
	@Resource
	private IPrivilegeGroupService privilegeGroupService; 
	
	@RequestMapping(value = "/getPrivilegeGroupList.do", method = {RequestMethod.POST,RequestMethod.GET})
	@ResponseBody
	public Object getPrivilegeGroupList(HttpServletRequest request){
		return ResultMap.success(privilegeGroupService.getPrivilegeGroupList());
	}
	
}
